{extend name="layout/base" /}

{block name="title"}{$pageTitle}{/block}

{block name="menu"}
    <!-- Overridden menu content -->
    <a href="/" style="font-weight: bold;">Home</a>
    <a href="/products">Products</a>
    <a href="/contact">Contact Us</a>
{/block}

{block name="content"}
    <h2>Welcome to the Homepage!</h2>
    <p>Hello, this content comes from the index view.</p>
    <p>The user is: <?= htmlspecialchars($user['name'] ?? 'Guest') ?></p>
{/block}
